package com.xichen.pojo;

import tk.mybatis.mapper.annotation.ColumnType;
import tk.mybatis.mapper.annotation.NameStyle;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author tang wei
 * @version 1.0
 * @date 2020/7/16 12:58
 */
@Table(name="SYS_USER")
@NameStyle()
public class User {
    @Id
    private Long id; //用户表id

    private Date createTime;//用户创建时间
    private Date updateTime;//用户更新时间
    private String loginName;//用户名
    private String pwd;//密码
    private String username;//姓名
    private String job;//职务
    private String tel;//手机号码
    private Integer userRole;//用户权限
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getUserRole() {
        return userRole;
    }

    public void setUserRole(Integer userRole) {
        this.userRole = userRole;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", loginName='" + loginName + '\'' +
                ", pwd='" + pwd + '\'' +
                ", username='" + username + '\'' +
                ", job='" + job + '\'' +
                ", tel='" + tel + '\'' +
                ", userRole=" + userRole +
                '}';
    }
}
